﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace RN.ERP.Entity.ZBDLRY
{
    [Table("Tb_Emp_TitleDetails")]
    public class Tb_Emp_TitleDetails_Zbdl
    {
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Int32 ID { get; set; }
        public Int32? TreeID { get; set; }
        public Int32? ClassID { get; set; }
        [Key]
        public Guid EducationGUID { get; set; }
        public Guid? EmpGuid { get; set; }
        public String FlowCode { get; set; }
        public String CertificateName { get; set; }

        private Int32? _typeFlags = 0;

        public Int32? TypeFlags
        {
            get { return _typeFlags; }
            set { _typeFlags = value; }
        }
        [NotMapped]
        public string STypeFlags
        {
            get { return _typeFlags == null ? "-99" : _typeFlags.ToString(); }
           
        }

        public String EmpType { get; set; }
        public String CertificateCode { get; set; }
        public String CertificateSpecialty { get; set; }
        public String CSCode { get; set; }
        public String CertificateLevel { get; set; }
        public String CLCode { get; set; }
        public String StampCode { get; set; }
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd}")]
        public DateTime? GetCertificateDate { get; set; }
        public Int32? IsExport { get; set; }
        public Int32? bSendFlag { get; set; }
        public Int32? IsValid { get; set; }
        public String ZsEndDate { get; set; }
        public String ZsRegisterDate { get; set; }
        public Int32? oldid { get; set; }
        public Int32? dogid { get; set; }
        public Int32? RightCode { get; set; }
        public bool? IsDel { get; set; }
        public string RegisterCorpName { get; set; }
        public string Remark { get; set; }
        public int? GroupTreeID { get; set; } 
    }
}
